<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('/xiecheng/test',"XieCheng@test");
Route::get('/xiecheng/testyou',"XieCheng@test3");
Route::get('/xiecheng/testwu',"XieCheng@test1");
Route::get('/task/test',"TestController@ccc");
Route::get('/task/yibu',"TestController@yibu");
Route::get('/Dulog',"Dulog@index");
Route::get('/event/test', function () {
    $event = new \App\Events\TestEvent('测试异步事件监听及处理');
    $success = \Hhxsv5\LaravelS\Swoole\Task\Event::fire($event);
    var_dump($success);
});